import Vue from 'vue'
import Router from 'vue-router'

const Recommend = () => import(/* webpackChunkName: "recommend" */ '@/page/recommend/recommend')
const Rank = () => import(/* webpackChunkName: "rank" */ '@/page/rank/rank')
const Singer = () => import(/* webpackChunkName: "singer" */ '@/page/singer/singer')

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      redirect: '/recommend'
    }, {
      path: '/recommend',
      name: 'Recommend',
      component: Recommend
    }, {
      path: '/rank',
      name: 'Rank',
      component: Rank
    }, {
      path: '/singer',
      name: 'Singer',
      component: Singer
    }
  ]
})
